<?php
if(!isset($AppUI->id) || ( isset($AppUI->id) && ($AppUI->id <=0 || ($AppUI->id > 0 && $AppUI->type != ROLE_ROOT)))) {
	redirect(HOST_BACKEND);
}
$this->load->model('section_model', 'section');	
$intSectionId = $this->input->get('sectionid', 0);
$row          = $this->section->get($intSectionId);
$this->smarty->assign('row', $row);
$this->smarty->assign('arrType', $arrType);
$this->smarty->assign('arrEnabled', $arrEnabled);
$this->smarty->assign('back', isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : (HOST_BACKEND . 'section'));
$this->smarty->display('section/edit.tpl');
